package com.emotionalEnvelope.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.emotionalEnvelope.edu.core.RestResponse;
import com.emotionalEnvelope.edu.dto.UserLoginDto;
import com.emotionalEnvelope.edu.model.User;
import com.emotionalEnvelope.edu.param.UserCodeLoginParam;
import com.emotionalEnvelope.edu.param.UserLoginParam;
import com.emotionalEnvelope.edu.param.UserRegisterParam;


/**
 * @Description
 * @Author lqq
 * @Date 2023/02/26 20:26
 */
public interface IUserService extends IService<User> {


    RestResponse<UserLoginDto> login(UserLoginParam user);


    RestResponse<String> register(UserRegisterParam user);

    RestResponse<String> code(String email);

    RestResponse<String> loginByCode(UserCodeLoginParam param);


}
